__author__ = 'chobit'
# -*- coding:utf-8 -*-
# 
import time,sys
# f_handler=open('./temp/out.log', 'w') 
# sys.stdout=f_handler
class Aqst:
	def __init__(self):
		self.total_num

	def getCurrentTime(self,time_date):
		if time_date == 'time':
			return time.strftime('[%Y-%m-%d %H:%M:%S]',time.localtime(time.time()))
		elif time_date == 'date':
			return time.strftime('%Y-%m-%d',time.localtime(time.time()))

		else:
			return None
	#获取总页数
	def getTotalPageNum(slef):
		pass


	def main(self):
	    page = open('./temp/page.txt','r')
	    content = page.readline()
	    start_page = int(content.strip()) - 1
	    page.close() 
	    print self.getCurrentTime('time'),"开始页码",start_page
	    print self.getCurrentTime('time'),"爬虫正在启动,开始爬取爱问知识人问题"


aq =Aqst()
aq.main()